﻿using System;
using System.Collections;

namespace ConsoleApp16
{
    class Program
    {
        static void Main(string[] args)
        {
            Hashtable ht = new Hashtable();
            ht.Add(1, "aaa");
            ht.Add(2, "bbb");
            ht.Add(3, "ccc");
            Console.WriteLine("2233");
            int id = int.Parse(Console.ReadLine());
            bool flag = ht.ContainsKey(id);
            bool flag2 = ht.ContainsValue("2223333");
            Console.WriteLine("23333");
            Console.WriteLine(ht.Count);
            ht.Remove(3);
            if(flag)
            {
                Console.WriteLine("yvjv:{0}", ht[id].ToString());
            }
            else
            {
                Console.WriteLine("shuruwu");
            }

            Console.WriteLine("ruxia");
            foreach(DictionaryEntry c in ht)
            {
                int key = (int)c.Key;
                string value = c.Value.ToString();
                Console.WriteLine("数字：{0}", key, value);
            }

        }
    }
}
